import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//全局导入
import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Vant);
Vue.config.productionTip = false


//自定义组件
// import FirstCom from '@/components/FirstCom.vue'

// Vue.use({
//   install (Vue) {
//     Vue.component('FirstCom', FirstCom)
//   }
// })
// Vue.use(
//   function (Vue) {
//     Vue.component('FirstCom', FirstCom)
//   }

// )

import Defot from '@/components'
Vue.use(Defot)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
